OperableOperator
Ecng.ComponentModel.OperatorRegistry
Represents an operator implementation for types implementing IOperable.
Наследует: BaseOperator<T>
Методы
Add
public override T Add(T first, T second)
result = operableOperator.Add(first, second)
Adds two values.
- first
- The first value.
- second
- The second value.
Возвращает: The result of addition.
Compare
public override int Compare(T x, T y)
result = operableOperator.Compare(x, y)
Compares two values.
- x
- The first value.
- y
- The second value.
Возвращает: A value indicating the relative order.
Divide
public override T Divide(T first, T second)
result = operableOperator.Divide(first, second)
Divides the first value by the second.
- first
- The first value.
- second
- The second value.
Возвращает: The result of division.
Multiply
public override T Multiply(T first, T second)
result = operableOperator.Multiply(first, second)
Multiplies two values.
- first
- The first value.
- second
- The second value.
Возвращает: The result of multiplication.
Subtract
public override T Subtract(T first, T second)
result = operableOperator.Subtract(first, second)
Subtracts the second value from the first.
- first
- The first value.
- second
- The second value.
Возвращает: The result of subtraction.